<?php
/**
 * Created by PhpStorm.
 * User: Celebration-Grey
 * Date: 2017/4/16
 * Time: 17:09
 */

Route::match(['get','post'],'/weibo_auto_login','User\UserController@cookieLogin');
Route::get('/weibo_session','User\UserController@sessionStart');
Route::post('/weibo_login','User\UserController@login');
Route::post('/weibo_register_request','User\UserController@registerRequest');
Route::post('/weibo_register','User\UserController@register');
Route::post('/weibo_reset_request','User\UserController@getResetCode');
Route::post('/weibo_reset','User\UserController@resetPassword');
Route::get('/weibo_logOut','User\UserController@logOut');

Route::group(['middleware' => 'AccessToken'],function (){
    Route::get('/weibo_authorInfo','User\AuthorController@getAuthorCard');

    Route::post('/weibo_uploadHeadOriginal','User\UserController@uploadHeadOriginal');
    Route::post('/weibo_uploadHeadImg','User\UserController@uploadHeadImg');

    Route::post('/weibo_uploadCoverOriginal','User\UserController@uploadCoverOriginal');
    Route::post('/weibo_uploadCoverImg','User\UserController@uploadCoverImg');

    Route::post('/weibo_uploadBackgroundOriginal','User\UserController@uploadBackgroundOriginal');
    Route::post('/weibo_uploadBackgroundImg','User\UserController@uploadBackgroundImg');

    Route::get('/weibo_getSelfInfo','User\UserController@getSelfInfo');
    Route::post('/weibo_updateSelfInfo','User\UserController@updateSelfInfo');

    Route::get('/weibo_uidInfo','User\AuthorController@getUidInfo');
});